<!--
/*
 * SPDX-License-Identifier: GPL-3.0-or-later
 * Copyright 2014 The moOde audio player project / Tim Curtis
 *
 * 汉化：Androidnews
 *
*/
-->
<div id="container">
<div class="container">
	<h1 class="snd-config">芯片选项</h1>

	<!-- Burr Brown PCM and TAS chips -->
    <form class="form-horizontal" action="" method="post">
		<div class="control-group $_burrbrown_hide">
			<legend>Burr Brown PCM/TAS 系列</legend>
			<button class="legend-config btn btn-medium btn-primary btn-submit" type="submit" name="save" value="1">保存</button>
		</legend>
		<p class=sub-legend>这包括许多PCM5和TAS系列的DAC和放大器芯片</p>

		<label class="control-label" for="digfilter">过采样滤波器</label>
		<div class="controls">
			<select id="digfilter" class="config-select-large" name="config[digfilter]">
				$_select[digfilter]
				</select>
			<span class="config-help-static">
                滤波器应用于过采样阶段的PCM样本。
				播放会自动重新启动以使滤波器更改生效。
				请注意，如果采样率为384 kHz，则滤波器会被旁路。
                </span>
		</div>

		<label class="control-label" for="analoggain">模拟增益</label>
		<div class="controls">
			<select id="analoggain" class="config-select-large" name="config[analoggain]">
				$_select[analoggain]
				</select>
			<span class="config-help-static">
				 模拟增益可以设置为0 dB（2-Vrms）或–6 dB（1-Vrms）。
                </span>
		</div>

		<label class="control-label" for="analogboost">模拟增益提升</label>
		<div class="controls">
			<select id="analogboost" class="config-select-large" name="config[analogboost]">
				$_select[analogboost]
				</select>
			<span class="config-help-static">
				 模拟增益提升可以设置为0 dB（正常振幅）或.8 dB（10%增强振幅）。
               </span>

			</div>
		</div>

		<!-- Allo Piano 2.1 (Dual Burr Brown PCM5142 chips) -->
			<div class="control-group $_allo_piano_hide">
			<legend>Allo Piano 2.1 DAC
				<button class="legend-config btn btn-medium btn-primary btn-submit" type="submit" name="save" value="1">保存</button>
			</legend>
			<p class=sub-legend>这些选项是针对Piano 2.1板上的双Burr Brown PCM5142实现的。</p>

			<label class="control-label" for="outputmode">输出模式</label>
			<div class="controls">
				<select id="outputmode" class="config-select-large" name="config[outputmode]">
					$_select[outputmode]
				</select>
				<span class="config-help-static">
					<b>Dual-Mono: </b>主DAC输出L声道，副DAC输出R声道 (L/静音 静音/R)。<br>
					<b>Dual-Stereo: </b>两个DAC都输出L/R声道 (L/R L/R)。<br>
					<b>Stereo: </b>所有频率到主L/R和副L/R<br>
					<b>Subwoofer: </b>2.1/2.2 (高频到主L/R，低频到副L / 副L/R)<br>
                </span>
			</div>

			<label class="control-label" for="lowpassfreq">交叉频率</label>
			<div class="controls">
				<select id="lowpass" class="config-select-large" name="config[lowpass]" $_allo_piano_submode_disabled>
					$_select[lowpass]
				</select>
				&nbsp;Hz
				<span class="config-help-static">
					频率范围是60 - 200 Hz。<br>
                </span>
			</div>

			<label class="control-label" for="subwvol">超低音扬声器音量</label>
			<div class="controls">
                <input class="config-imput-large" type="number" maxlength="3" min="0" max="100" id="subwvol" name="config[subwvol]" value="$subwvol" $_allo_piano_submode_disabled> %
				<span class="config-help-static">
					音量范围是0 - 100%。
                </span>
			</div>
		</div>

		<!-- Allo Katana DAC (ESS Sabre ES9038Q2M芯片) -->
		<div class="control-group $_allo_katana_hide">
			<legend>Allo Katana DAC
				<button class="legend-config btn btn-medium btn-primary btn-submit" type="submit" name="save" value="1">保存</button>
			</legend>
			<p class=sub-legend>这些选项是针对Katana板上的ESS Sabre ES9038Q2M实现的。</p>

			<label class="control-label" for="katana-osf">过采样滤波器</label>
			<div class="controls">
				<select id="katana-osf" class="config-select-large" name="config[katana_osf]">
					$_select[katana_osf]
				</select>
				<span class="config-help-static">
                	滤波器应用于过采样阶段的PCM样本。
					播放会自动重启以使滤波器更改生效。
					默认为“快速衰减”。
                </span>
			</div>

			<label class="control-label" for="katana-deemphasis">去加重</label>
			<div class="controls">
				<select id="katana-deemphasis" class="config-select-large" name="config[katana_deemphasis]">
					$_select[katana_deemphasis]
				</select>
				<span class="config-help-static">
					去加重可以设置为旁通、32kHz、44.1kHz或48kHz。默认为“旁通”。
                </span>
			</div>

			<label class="control-label" for="katana-dop">DSD over PCM</label>
			<div class="controls">
				<select id="katana-dop" class="config-select-large" name="config[katana_dop]">
					$_select[katana_dop]
				</select>
				<span class="config-help-static">
					打开/关闭对DSD over PCM（DoP）协议的支持。默认为“开启”
               </span>
			</div>
		</div>

		<!-- Allo Boss 2 DAC (Cirrus Logic CS43198芯片) -->
		<div class="control-group $_allo_boss2_hide">
			<legend>Allo Boss 2 DAC
				<button class="legend-config btn btn-medium btn-primary btn-submit" type="submit" name="save" value="1">保存</button>
			</legend>
			<p class=sub-legend>这些选项是针对Boss 2板上的Cirrus Logic CS43198实现的。</p>

			<label class="control-label" for="boss2-deemphasis-filter">去加重滤波器</label>
			<div class="controls">
				<select id="boss2-deemphasis-filter" class="config-select-large" name="config[boss2_deemphasis-filter]">
					$_select[boss2_deemphasis-filter]
				</select>
				<span class="config-help-static">
					默认为“关闭”。
                </span>
			</div>


		<label class="control-label" for="boss2-filter-speed">滤波器速度</label>
			<div class="controls">
				<select id="boss2-filter-speed" class="config-select-large" name="config[boss2_filter_speed]">
					$_select[boss2_filter_speed]
				</select>
				<span class="config-help-static">
					默认为“快速”。
                </span>
			</div>

			<label class="control-label" for="boss2-highpass-filter">高通滤波器</label>
			<div class="controls">
				<select id="boss2-highpass-filter" class="config-select-large" name="config[boss2_highpass_filter]">
					$_select[boss2_highpass_filter]
				</select>
				<span class="config-help-static">
					默认为“开启”。
                </span>
			</div>

			<label class="control-label" for="boss2-nonosf-emulate">模拟非过采样 (NOS)</label>
			<div class="controls">
				<select id="boss2-nonosf-emulate" class="config-select-large" name="config[boss2_nonosf_emulate]">
					$_select[boss2_nonosf_emulate]
				</select>
				<span class="config-help-static">
					模拟非过采样（NOS）。默认为“关闭”。
                </span>
			</div>

			<label class="control-label" for="boss2-phase-compensation">相位补偿</label>
			<div class="controls">
				<select id="boss2-phase-compensation" class="config-select-large" name="config[boss2_phase_compensation]">
					$_select[boss2_phase_compensation]
				</select>
				<span class="config-help-static">
					默认为“关闭”。
                </span>
			</div>

			<label class="control-label" for="boss2-hv-enable">高压启用</label>
			<div class="controls">
				<select id="boss2-hv-enable" class="config-select-large" name="config[boss2_hv_enable]">
					$_select[boss2_hv_enable]
				</select>
				<span class="config-help-static">
					模拟输出电压。默认为“1.7 vrms”。
                </span>
			</div>


			<!-- NOTE: this volume is automatically sync'd with master volume in worker.php event loop
			<label class="control-label" for="boss2-dop-volume">DoP volume</label>
			<div class="controls">
				<input id="boss2-dop-volume" class="config-input-large" type="number" maxlength="3" min="0" max="100" id="subwvol" name="config[boss2_dop_volume]" value="$boss2_dop_volume"> %
				<span class="config-help-static">
					The volume range is 0 - 100%.
                </span>
			</div-->
		</div>

		<!-- Audiophonics (ESS Sabre ES9028/9038 pre and post 2019 boards) -->
		<div class="control-group $_audiophonics_q2m_hide">
	<legend>Audiophonics ES9028/9038 DAC
				<button class="legend-config btn btn-medium btn-primary btn-submit" type="submit" name="save" value="1">保存</button>
			</legend>
			<p class=sub-legend>这些选项适用于Audiophonics板上的ESS Sabre ES9028/9038实现。</p>

			<label class="control-label" for="audiophonics-q2m-osf">过采样滤波器</label>
			<div class="controls">
				<select id="audiophonics-q2m-osf" class="config-select-large" name="config[audiophonics_q2m_osf]">
					$_select[audiophonics_q2m_osf]
				</select>
				<span class="config-help-static">
                	滤波器应用于过采样阶段的PCM样本。
					播放会自动重启以使滤波器更改生效。
					默认为“Apodizing Fast Roll-off”。
                </span>
			</div>

			<!-- NOTE: This option is handled in the Source Select screen -->
			<label class="control-label" for="audiophonics-q2m-input">解码输入</label>
			<div class="controls">
				<select id="audiophonics-q2m-input" class="config-select-large" name="config[audiophonics_q2m_input]">
					$_select[audiophonics_q2m_input]
				</select>
				<span class="config-help-static">
					默认 "I2S".
                </span>
			</div>
		</div>

	<!-- IanCanada (MonitorPi Pro with ESS DAC) -->
<div class="control-group $_iancanada_q2m_hide">
	<legend>IanCanada (MonitorPi Pro with ESS DAC)
		<button class="legend-config btn btn-medium btn-primary btn-submit" type="submit" name="save" value="1">保存</button>
	</legend>
	<p class=sub-legend>这些选项适用于ESS Sabre DAC。</p>

	<label class="control-label" for="iancanada-q2m-osf">过采样滤波器</label>
	<div class="controls">
		<select id="iancanada-q2m-osf" class="config-select-large" name="config[iancanada_q2m_osf]">
			$_select[iancanada_q2m_osf]
		</select>
		<span class="config-help-static">
                滤波器应用于过采样阶段的PCM样本。
			播放会自动重启以使滤波器更改生效。
			默认滤波器是“砖墙”。
                </span>
		</div>
	</div>
	<!-- MERUS(tm) Amp piHAT ZW (MERUS MA12070P芯片) -->
	<div class="control-group $_merus_ma12070p">
		<legend>MERUS(tm) Amp piHAT ZW
			<button class="legend-config btn btn-medium btn-primary btn-submit" type="submit" name="save" value="1">保存</button>
		</legend>
		<p class=sub-legend>这些选项适用于MERUS Amp板上的MERUS MA12070P实现。</p>

		<label class="control-label" for="merus-ma12070p-pmp">电源模式配置文件</label>
		<div class="controls">
			<select id="merus-ma12070p-pmp" class="config-select-large" name="config[merus_ma12070p_pmp]">
				$_select[merus_ma12070p_pmp]
			</select>
			<span class="config-help-static">
                MA12070P为操作内部放大器提供了不同的电源模式配置文件。它们定义了放大器针对预期应用的最佳设置。电源模式配置文件的选择会影响各种参数，如开关频率、调制方案和环路增益，从而提供设计权衡上的灵活性，如音频性能、功率损耗和EMI。
                </span>
			</div>
		</div>

	</form>
</div>
</div>
